# 使用numpy模块生成随机数
import numpy as np

# 随机生成[1,10)的长度为n的分数数组nums  n>2
def nums(n):
    nums1 = list(np.random.randint(1, 10, size=n))
    nums2 = list(np.random.randint(1, 10, size=n-2))
    return [nums1,nums2]

#测试生成的数据样例
if __name__ == '__main__':
    for i in range(5):
        print(nums(5))

"""
数据示例：
        [[6, 5, 8, 7, 7], [2, 8, 5]]
        [[6, 4, 4, 2, 9], [4, 2, 3]]
        [[4, 7, 7, 2, 4], [6, 3, 8]]
        [[2, 8, 6, 5, 2], [8, 1, 3]]
        [[2, 7, 7, 9, 5], [2, 6, 6]]
"""